from fastapi import APIRouter

app = APIRouter()



@app.get('/api')
async def api() -> dict: # 这里指定返回值类型是字典
    """
    测试接口
    :return:
    """
    return {'title': 'api测试接口'}